package com.woniu.mealsService.service;

import com.woniu.dto.StoreViewDto;
import com.woniu.mealsService.model.StoreView;
import com.woniu.utils.PageInfo;

import java.util.List;

/**
 * @author jiang
 * 商家销售信息面板服务
 */
public interface StoreViewService {
    // 定时任务，计算店铺平均分数
    void calculateStoreScore() throws Exception;
    // 定时任务，计算店铺日销量
    StoreViewDto getCalculateStoreDailySales(Long StoreId,String date) throws Exception;
    // 定时任务，计算店铺月销量
    List<StoreViewDto> getCalculateStoreMonthSales(Long storeId,String date) throws Exception;
    // 定时任务，计算店铺日销最高的商品
    void calculateStoreDailyBestSales() throws Exception;
    // 定时任务，计算店铺月销最高的商品
    void calculateStoreMonthBestSales() throws Exception;
    // 定时任务，计算当天商品的销售情况
    void calculateStoreDailySalesDetail() throws Exception;

    com.github.pagehelper.PageInfo<StoreView> searchPageMonthStoreView(Long storeId, String date,Integer pageNum,Integer pageSize)throws Exception;
}
